package com.ruoyi.yzd.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.yzd.mapper.YzdAdministratorMapper;
import com.ruoyi.yzd.domain.YzdAdministrator;
import com.ruoyi.yzd.service.IYzdAdministratorService;

/**
 * 易制毒-管理员Service业务层处理
 * 
 * @author zyb
 * @date 2023-07-04
 */
@Service
public class YzdAdministratorServiceImpl implements IYzdAdministratorService 
{
    @Autowired
    private YzdAdministratorMapper yzdAdministratorMapper;

    /**
     * 查询易制毒-管理员
     * 
     * @param adminId 易制毒-管理员主键
     * @return 易制毒-管理员
     */
    @Override
    public YzdAdministrator selectYzdAdministratorByAdminId(String adminId)
    {
        return yzdAdministratorMapper.selectYzdAdministratorByAdminId(adminId);
    }

    /**
     * 查询易制毒-管理员列表
     * 
     * @param yzdAdministrator 易制毒-管理员
     * @return 易制毒-管理员
     */
    @Override
    public List<YzdAdministrator> selectYzdAdministratorList(YzdAdministrator yzdAdministrator)
    {
        return yzdAdministratorMapper.selectYzdAdministratorList(yzdAdministrator);
    }

    /**
     * 新增易制毒-管理员
     * 
     * @param yzdAdministrator 易制毒-管理员
     * @return 结果
     */
    @Override
    public int insertYzdAdministrator(YzdAdministrator yzdAdministrator)
    {
        return yzdAdministratorMapper.insertYzdAdministrator(yzdAdministrator);
    }

    /**
     * 修改易制毒-管理员
     * 
     * @param yzdAdministrator 易制毒-管理员
     * @return 结果
     */
    @Override
    public int updateYzdAdministrator(YzdAdministrator yzdAdministrator)
    {
        return yzdAdministratorMapper.updateYzdAdministrator(yzdAdministrator);
    }

    /**
     * 批量删除易制毒-管理员
     * 
     * @param adminIds 需要删除的易制毒-管理员主键
     * @return 结果
     */
    @Override
    public int deleteYzdAdministratorByAdminIds(String[] adminIds)
    {
        return yzdAdministratorMapper.deleteYzdAdministratorByAdminIds(adminIds);
    }

    /**
     * 删除易制毒-管理员信息
     * 
     * @param adminId 易制毒-管理员主键
     * @return 结果
     */
    @Override
    public int deleteYzdAdministratorByAdminId(String adminId)
    {
        return yzdAdministratorMapper.deleteYzdAdministratorByAdminId(adminId);
    }
}
